// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export function isEmpty(value: any) {
  /*console.log(Object.prototype.toString.call("jerry"));//[object String]
console.log(Object.prototype.toString.call(12));//[object Number]
console.log(Object.prototype.toString.call(true));//[object Boolean]
console.log(Object.prototype.toString.call(undefined));//[object Undefined]
console.log(Object.prototype.toString.call(null));//[object Null]
console.log(Object.prototype.toString.call({name: "jerry"}));//[object Object]
console.log(Object.prototype.toString.call(function(){}));//[object Function]
console.log(Object.prototype.toString.call([]));//[object Array]
console.log(Object.prototype.toString.call(new Date));//[object Date]
console.log(Object.prototype.toString.call(/\d/));//[object RegExp]*/
  if (!value) {
    return true;
  }
  if (Object.prototype.toString.call(value) == '[object Object]') {
    const arr = Object.keys(value);
    return arr.length == 0;
  }
  if (Object.prototype.toString.call(value) == '[object Array]') {
    return value.length == 0;
  }
  return false;
}
